package com.example.imtoken.modules.main.wallet.manage.wallet.add

import com.blankj.utilcode.util.ClickUtils
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder
import com.example.imtoken.databinding.ItemWalletListBinding
import com.example.imtoken.entitys.app.WalletsEntity
import com.example.imtoken.entitys.http.CoinsEntityItem

class AddWalletAdapter(layoutResId: Int) :
    BaseQuickAdapter<CoinsEntityItem, BaseDataBindingHolder<ItemWalletListBinding>>(layoutResId) {
    override fun convert(
        holder: BaseDataBindingHolder<ItemWalletListBinding>,
        item: CoinsEntityItem
    ) {
        holder.dataBinding?.item = item

        ClickUtils.applyGlobalDebouncing(holder.itemView) {
            setOnItemClick(it, holder.adapterPosition)
        }
    }


}